package com.ruoyi.web.controller.teacher;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teacher.domain.Type;
import com.ruoyi.teacher.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/type")
public class TypeDtoController {

    @Autowired
    private TypeService typeService;


    @GetMapping("/list")
    public AjaxResult getList() {
        List<Type> list = typeService.getList();
        return AjaxResult.success("成功", list);
    }

}
